assistant: remove an useless gtk_widget_reset_style() call
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 May 2011 21:21:22 +0000 (17:21 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 19 May 2011 14:54:01 +0000 (10:54 -0400)
It's not needed to call _reset_style() here, as we did not add the
widget to the parent container yet.

https://bugzilla.gnome.org/show_bug.cgi?id=650530

gtk/gtkassistant.c

index 384b30949b58dc98ccaad7f3d548f1db7963f53a..8babd002dc23cd7a602756607c2c94571802751b 100644 (file)
@@ -1574,7 +1574,6 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
 
   context = gtk_widget_get_style_context (page_info->current_title);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_HIGHLIGHT);
-  gtk_widget_reset_style (page_info->current_title);
 
   gtk_size_group_add_widget (priv->title_size_group, page_info->regular_title);
   gtk_size_group_add_widget (priv->title_size_group, page_info->current_title);